projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60f3cc3
)
window: Don't mark widget prematurely as has-focus
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 15 Apr 2023 12:58:57 +0000
(14:58 +0200)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 15 Apr 2023 12:58:57 +0000
(14:58 +0200)
has-focus is defined is-focus && toplevel::is-active.
We were forgetting to look at is_active when handling
focus widget changes.
gtk/gtkwindow.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwindow.c
b/gtk/gtkwindow.c
index 7990458095b53d8da191a8c96e13f21a2a88d08a..01b205b87d24482ce1f1aa10cd2ed9af06cad1ba 100644
(file)
--- a/
gtk/gtkwindow.c
+++ b/
gtk/gtkwindow.c
@@
-2023,7
+2023,7
@@
gtk_window_root_set_focus (GtkRoot *root,
synthesize_focus_change_events (self, old_focus, focus, GTK_CROSSING_FOCUS);
if (focus)
- gtk_widget_set_has_focus (focus,
TRUE
);
+ gtk_widget_set_has_focus (focus,
priv->is_active
);
g_set_object (&priv->focus_widget, focus);